home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d18
/
opint102.5rc
/
DEMO_COM.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-12-04
|
2KB
|
46 lines
Program Demo_Com;
{***************************************************************************}
{* *}
{* O p u s I n t e r f a c e V e r 1.02 Demo Program. *}
{* *}
{* Opus V 1.0x Interface for Turbo Pascal Ver 4.0 *}
{* *}
{* These Structures,Procedures and Functions may help you to make OPUS *}
{* utilities for to help other SysOps, Please read the Documentation. *}
{* *}
{* Regards *}
{* Per Holm *}
{* *}
{* FIDO: Per Holm - Asgaard BBS 2:230/22.0 *}
{* UUCP: perholm@daimi.DK *}
{* *}
{***************************************************************************}
Uses OPINT,Crt,Dos;
VAR
c:char;
i: Integer;
ComIn,ComOut: Text;
Line: String[80];
BEGIN
_Snoop:=_On; { Look at this... }
_KeyBoard:=_On; { Enable Keyboard }
_ExitCarrier:=0; { Don't exit on Carrier change }
AssignFossil(ComIn,0,0); { Assign for input Don;t }
Reset(ComIn); { change BaudRate }
AssignFossil(ComOut,0,0); { Here's a device to write to }
rewrite(ComOut);
WriteLn(ComOut,'Hi Johnny, Enter a line of text');
Readln(ComIn,Line);
Writeln(ComOut,'OK here we go : "',Line,'"');
IF FossilCarrier(ComIn) THEN
Writeln('Carrier OK');
write(ComOut,'Thanx Press Enter');
repeat
until ReadFossil(ComIn)=#13;
writeln(ComOut);
END.